<?php
require_once "includes/config.php";
//require_once 'includes/class.phpmailer.php';

$user_id = $_REQUEST['user_id'];
$sqlSelProd="SELECT product_id,product_name FROM tbl_product where posted_by='$user_id' and sell_by=0 ORDER BY product_id DESC";
$rstSelProd		= mysql_query($sqlSelProd);
$cnt = mysql_num_rows($rstSelProd);
if($cnt > 0)
{
   $list='<ul style="float: left; list-style-type: none; width: 170px;">';
    while($rowSelProd= mysql_fetch_array($rstSelProd))
    {
        $productId=$rowSelProd['product_id'];
        $productName=$rowSelProd['product_name'];
        $list.='<li><input type="radio" name="pro" id="pro'.$productId.'" value="'.$productId.'" /> '.$productName.'</li>';
    }
    $list.='</ul><br /><center><input type="button" value="Ok" class="refer_btn" onclick="select_inv()" /></center>';
}
else
{
    $list = '<center><b>No inventorys found</b></center>';    
}



echo $list;

?>